@charset "utf-8";
body {
    background: #DDD6CC;
    padding-top: 45px;
}

.animated {
    transition: all 0.6s;
    -moz-transition: all 0.6s;
    -webkit-transition: all 0.6s;
    -o-transition: all 0.6s;
}

.animated2 {
    transition: all 0.2s;
    -moz-transition: all 0.2s;
    -webkit-transition: all 0.2s;
    -o-transition: all 0.2s;
}

.animated8 {
    transition: all 0.8s;
    -moz-transition: all 0.8s;
    -webkit-transition: all 0.8s;
    -o-transition: all 0.8s;
}

.slideUp {
    -webkit-transform: translateY(-45px);
    transform: translateY(-45px);
}

.layui-nav .layui-this:after,
.layui-nav-bar,
.layui-nav-tree .layui-nav-itemed:after {
    background-color: #F75733;
}

.layui-container {
    padding: 0;
}

.myheader {
    height: 45px;
    width: 100%;
    font-weight: bold;
    background: #EC8A70;
    background: -webkit-gradient(linear, 0 0, 0 bottom, from(#fff), to(#ECECEC));
    box-shadow: #CDC5BB 2px 2px 3px;
    /* 一些不支持背景渐变的浏览器 */
    //background: -moz-linear-gradient(top, #EC8A70, #DDD6CC);
    //background: -webkit-gradient(linear, 0 0, 0 bottom, from(#EC8A70), to(#DDD6CC));
    //background: -o-linear-gradient(top, #F75733, #EC8A70);
    .layui-container {
        .layui-nav {
            background: none;
            padding: 0;
            .layui-nav-item {
                line-height: 45px;
                display: block;
                a {
                    color: #000000;
                }
                .layui-nav-child {
                    top: 50px;
                }
                .layui-nav-more {
                    display: none;
                }
            }
        }
        >div {
            height: 45px;
            line-height: 45px;
        }
        >div.logo {
            width: 120px;
            text-align: center;
            position: relative;
            margin-left: 5px;
        }
        >div.left {
            display: none;
            height: auto;
            .layui-nav {
                background: #ECECEC;
            }
        }
        >div.right {
            .layui-nav {
                .layui-nav-item {
                    display: inline-block;
                }
            }
            position: absolute;
            right: 0;
            top: 0;
            color: #FFFFFF;
            cursor: pointer;
        }
    }
}

//搜索框
.my-searching {
    padding-left: 20px;
}

.my-layui-input {
    height: 30px;
    line-height: 30px;
    box-sizing: border-box;
}

//文章目录
.layui-layer-dir {
    box-shadow: none !important;
    border: 1px solid #d2d2d2;
    margin-left: -15px !important;
}

.site-dir {
    padding: 10px;
    li {
        line-height: 26px;
        margin-left: 20px;
        overflow: visible;
        list-style-type: disc;
    }
    .layui-this {
        color: #FF5722 !important;
        a {
            color: #FF5722 !important;
        }
    }
}

.is_top_false {
    background: #EC8A70;
    background: -webkit-gradient(linear, 0 0, 0 bottom, from(#fff), to(#ECECEC));
    box-shadow: #CDC5BB 2px 2px 3px;
}

.is_top_true {
    .layui-container {
        .layui-nav {
            .layui-this {
                &::after {
                    background-color: #F3F3F3;
                }
            }
            >span {
                background-color: #F3F3F3;
            }
        }
        .left {
            .layui-nav {
                .layui-this {
                    &::after {
                        background-color: #F75733;
                    }
                }
                .layui-nav-item>a {
                    color: #000000;
                }
                >span {
                    background-color: #F75733;
                }
            }
        }
    }
}

.top {
    position: fixed;
    top: 0;
    z-index: 99999;
}

.content {
    padding: 0 5px;
}

.mycontent {
    margin-top: 10px;
    .content-right {
        position: relative;
        >div {
            margin-left: 0px;
            >div {
                margin-bottom: 20px;
                border-radius: 2px;
                background: #E8E5DD;
                box-shadow: 0 2px 5px 0 rgba(0, 0, 0, .2);
            }
            h3 {
                background: #F75733;
                color: #FFF;
                padding-left: 20px;
                height: 40px;
                line-height: 40px;
                font-size: 15px;
                border-top-left-radius: 2px;
                border-top-right-radius: 2px;
            }
            .flag {
                .content {
                    padding: 10px;
                    padding-left: 20px;
                    a {
                        color: #FFFFFF;
                        display: inline-block;
                        margin: 5px 1px;
                        padding: 3px 9px;
                        cursor: pointer;
                        &:hover {
                            background-color: #F75733 !important;
                        }
                    }
                }
            }
            .classify {
                .content {
                    padding: 10px;
                    padding-left: 20px;
                    a {
                        display: inline-block;
                        padding: 10px;
                        color: rgba(0, 0, 0, 0.7);
                        &:hover {
                            text-decoration: underline;
                            color: #F75733;
                        }
                    }
                }
            }
            .hot-post,
            .re-post {
                .content {
                    padding: 10px;
                    padding-left: 20px;
                    ul {
                        list-style: none;
                        li {
                            height: 60px;
                            overflow: hidden;
                            border-bottom: 1px dashed #ccc;
                            margin-bottom: 14px;
                            &:hover {
                                padding-left: 30px;
                            }
                            a.thumbnail-link {
                                float: left;
                                display: block;
                                img.thumbnailside {
                                    display: block;
                                    padding: 3px;
                                    border: 1px solid #ddd;
                                    border-radius: 2px;
                                    background-color: #fff;
                                    border: none;
                                }
                            }
                            .right-box {
                                margin-left: 70px;
                                p,
                                i {
                                    display: inline-block;
                                    line-height: 38px;
                                    font-size: 13px;
                                }
                                i {
                                    margin-right: 3px;
                                }
                                .title {
                                    font-size: 15px;
                                    line-height: 22px;
                                    overflow: hidden;
                                    text-overflow: ellipsis;
                                    white-space: nowrap;
                                }
                                .view {
                                    padding-left: 20px;
                                }
                            }
                        }
                    }
                }
            }
            .re-post {
                ol li {
                    list-style: decimal-leading-zero inside;
                    font-style: oblique;
                    line-height: 40px;
                    overflow: hidden;
                    text-overflow: ellipsis;
                    white-space: nowrap;
                    padding-right: 5px;
                    a {
                        font-style: normal;
                    }
                }
            }
        }
    }
}

.footer {
    border-top: 6px solid #F75733;
    background: #242221;
    margin-top: 40px;
    .footavatar {
        position: relative;
        display: inline-block;
        margin-left: 15%;
        img {
            height: 110px;
            position: absolute;
            top: -40px;
            border: none;
        }
        .footphoto {
            display: inline-block;
            border: #F75733 3px solid;
        }
        ul.footinfo {
            display: inline-block;
            padding-left: 130px;
            padding-top: 20px;
            p {
                color: #CCCCCC;
                font-size: 12px;
            }
            .fname a {
                color: #F75733;
                margin-top: 16px;
                font-size: 18px;
                line-height: 28px;
            }
        }
    }
    .recentuser {
        text-align: center;
        width: 750px;
        margin: 0 auto;
        margin-top: 40px;
        border-top: 1px solid #32302e;
        p {
            color: #FFFFFF;
            display: block;
            line-height: 60px;
            text-align: left;
            padding-left: 20px;
        }
        ul {
            list-style: none;
            height: 90px;
            overflow: hidden;
            li {
                list-style: none;
                width: 70px;
                float: left;
                overflow: hidden;
                text-align: center;
                margin: 0 20px;
                img {
                    transition: all 0.3s;
                    -moz-transition: all 0.3s;
                    -webkit-transition: all 0.3s;
                    -o-transition: all 0.3s;
                    height: 70px;
                    width: 70px;
                    display: block;
                    border: none;
                    border-radius: 1px;
                    &:hover {
                        opacity: 0.8;
                        cursor: pointer;
                    }
                }
                .recent_nickname {
                    text-align: center;
                    color: #CCCCCC;
                    font-size: 12px;
                    margin-top: 4px;
                }
            }
        }
    }
    .info {
        text-align: center;
        padding-top: 20px;
        p {
            color: #F75733;
            font-size: 12px;
            line-height: 28px;
        }
        span {
            padding: 0 5px;
            text-align: center;
            border-right: 1px solid #DBD8D1;
            a {
                font-size: 12px;
                color: #CCCCCC;
            }
        }
        span.no-right-border {
            border: none;
        }
    }
}

//网易云
#music163 {
    position: fixed;
    left: -320px;
    bottom: 0;
    i {
        font-size: 20px;
        color: #FFFFFF;
        position: relative;
        display: inline-block;
        left: -14px;
        top: -200px;
        background: #F75733;
        line-height: 60px;
        border-top-right-radius: 4px;
        border-bottom-right-radius: 4px;
        &:hover {
            cursor: pointer;
        }
    }
}

//my-beat
.my-beat {
	animation: my-beat 5s infinite ease-in-out;
	display: inline-block;
}
$mypxs: (
	(trans: -1.5px, rotate: -1.5deg),
	(trans: -.5px, rotate: -.5deg),
	(trans: .5px, rotate: .5deg),
	(trans: 1.5px, rotate: 1.5deg),
	(trans: 2.5px, rotate: 2.5deg),
	(trans: -1.5px, rotate: -1.5deg),
	(trans: -.5px, rotate: -.5deg),
	(trans: .5px, rotate: .5deg),
	(trans: 1.5px, rotate: 1.5deg),
	(trans: 2.5px, rotate: 2.5deg)
);
//样式
@-moz-keyframes my-beat {
	$i:2;
	@while $i <= 100 {
		$translate:map-get(nth($mypxs, round(random() * 9 + 1)), trans);
		$rotate:map-get(nth($mypxs, round(random() * 9 + 1)), rotate);
	    #{$i}% {
	        -webkit-transform: translate(0, $translate) rotate($rotate);
	        -moz-transform: translate(0, $translate) rotate($rotate);
	        -ms-transform: translate(0, $translate) rotate($rotate);
	        -o-transform: translate(0, $translate) rotate($rotate);
	        transform: translate(0, $translate) rotate($rotate)
	    }
	    $i:$i + 2;
	}
}
@-webkit-keyframes my-beat {
	$i:2;
	@while $i <= 100 {
		$translate:map-get(nth($mypxs, round(random() * 9 + 1)), trans);
		$rotate:map-get(nth($mypxs, round(random() * 9 + 1)), rotate);
	    #{$i}% {
	        -webkit-transform: translate(0, $translate) rotate($rotate);
	        -moz-transform: translate(0, $translate) rotate($rotate);
	        -ms-transform: translate(0, $translate) rotate($rotate);
	        -o-transform: translate(0, $translate) rotate($rotate);
	        transform: translate(0, $translate) rotate($rotate)
	    }
	    $i:$i + 2;
	}
}
@-o-keyframes my-beat {
	$i:2;
	@while $i <= 100 {
		$translate:map-get(nth($mypxs, round(random() * 9 + 1)), trans);
		$rotate:map-get(nth($mypxs, round(random() * 9 + 1)), rotate);
	    #{$i}% {
	        -webkit-transform: translate(0, $translate) rotate($rotate);
	        -moz-transform: translate(0, $translate) rotate($rotate);
	        -ms-transform: translate(0, $translate) rotate($rotate);
	        -o-transform: translate(0, $translate) rotate($rotate);
	        transform: translate(0, $translate) rotate($rotate)
	    }
	    $i:$i + 2;
	}
}
@keyframes my-beat {
	$i:2;
	@while $i <= 100 {
		$translate:map-get(nth($mypxs, round(random() * 9 + 1)), trans);
		$rotate:map-get(nth($mypxs, round(random() * 9 + 1)), rotate);
	    #{$i}% {
	        -webkit-transform: translate(0, $translate) rotate($rotate);
	        -moz-transform: translate(0, $translate) rotate($rotate);
	        -ms-transform: translate(0, $translate) rotate($rotate);
	        -o-transform: translate(0, $translate) rotate($rotate);
	        transform: translate(0, $translate) rotate($rotate)
	    }
	    $i:$i + 2;
	}
}


@media (min-width: 768px) {
    .myheader {
        .layui-container {
            >div {
                float: left;
            }
            >div.left {
                display: block;
                div.logo {
                    float: left;
                }
                .layui-nav {
                    background: none;
                    .layui-nav-item {
                        display: inline-block;
                    }
                }
            }
        }
    }
    .footer {
        margin-top: 20px;
        .footavatar {
            margin-left: 22%;
        }
        .info {
            p {
                font-size: 14px;
            }
            span {
                a {
                    font-size: 14px;
                }
            }
        }
    }
    .content {
        padding: 0;
        .mycontent {
            .content-right {
                >div {
                    margin-left: 15px;
                }
            }
        }
    }
}